package com.cy.aircompressor.entity.sensor;

import com.drug.lib.view.recycptr.bean.BaseEntity;

import java.util.List;

/**
 * 和震动相关的
 */
public class VibrationDataChangeTrend extends BaseEntity {
    private String partName;
    private Sensor vibrationSensor;
    private List<VibrationData> xrms;
    private List<VibrationData> xspeed;
    private List<VibrationData> yrms;
    private List<VibrationData> yspeed;
    private List<VibrationData> zrms;
    private List<VibrationData> zspeed;

    public String getPartName() {
        return partName;
    }

    public void setPartName(String partName) {
        this.partName = partName;
    }

    public Sensor getVibrationSensor() {
        return vibrationSensor;
    }

    public void setVibrationSensor(Sensor vibrationSensor) {
        this.vibrationSensor = vibrationSensor;
    }

    public List<VibrationData> getXrms() {
        return xrms;
    }

    public void setXrms(List<VibrationData> xrms) {
        this.xrms = xrms;
    }

    public List<VibrationData> getXspeed() {
        return xspeed;
    }

    public void setXspeed(List<VibrationData> xspeed) {
        this.xspeed = xspeed;
    }

    public List<VibrationData> getYrms() {
        return yrms;
    }

    public void setYrms(List<VibrationData> yrms) {
        this.yrms = yrms;
    }

    public List<VibrationData> getYspeed() {
        return yspeed;
    }

    public void setYspeed(List<VibrationData> yspeed) {
        this.yspeed = yspeed;
    }

    public List<VibrationData> getZrms() {
        return zrms;
    }

    public void setZrms(List<VibrationData> zrms) {
        this.zrms = zrms;
    }

    public List<VibrationData> getZspeed() {
        return zspeed;
    }

    public void setZspeed(List<VibrationData> zspeed) {
        this.zspeed = zspeed;
    }

    public static class VibrationData extends BaseEntity {
        float value;
        String date;

        public float getValue() {
            return value;
        }

        public void setValue(float value) {
            this.value = value;
        }

        public String getDate() {
            return date;
        }

        public void setDate(String date) {
            this.date = date;
        }
    }
}
